package cn.huiyunche.base.service.vo;

import java.util.Date;

/**
 * 微信认证对象
 *
 * @author hdy [Tuffy]
 */
public class WeixinAccess {

    private String accessToken; // 验证token
    private String qyAccessToken; // 验证企业号token
    private int expiresIn; // 有效时间
    private String jsapiTicket; // js sdktoken
    private String qyJsapiTicket; // 企业号js sdktoken
    private Date accessTimer = new Date(); // 验证时间戳
    private Date qyAccessTimer = new Date(); // 验证企业号时间戳
    private Date jsapiTimer = new Date(); // js时间戳
    private Date qyJsapiTimer = new Date(); // 企业号js时间戳

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getQyAccessToken() {
        return qyAccessToken;
    }

    public void setQyAccessToken(String accessQyToken) {
        this.qyAccessToken = accessQyToken;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getJsapiTicket() {
        return jsapiTicket;
    }

    public void setJsapiTicket(String jsapiTicket) {
        this.jsapiTicket = jsapiTicket;
    }

    public String getQyJsapiTicket() {
        return qyJsapiTicket;
    }

    public void setQyJsapiTicket(String qyJsapiTicket) {
        this.qyJsapiTicket = qyJsapiTicket;
    }

    public Date getAccessTimer() {
        return accessTimer;
    }

    public void setAccessTimer(Date accessTimer) {
        this.accessTimer = accessTimer;
    }

    public Date getQyAccessTimer() {
        return qyAccessTimer;
    }

    public void setQyAccessTimer(Date qyAccessTimer) {
        this.qyAccessTimer = qyAccessTimer;
    }

    public Date getJsapiTimer() {
        return jsapiTimer;
    }

    public void setJsapiTimer(Date jsapiTimer) {
        this.jsapiTimer = jsapiTimer;
    }

    public Date getQyJsapiTimer() {
        return qyJsapiTimer;
    }

    public void setQyJsapiTimer(Date qyJsapiTimer) {
        this.qyJsapiTimer = qyJsapiTimer;
    }

    /**
     * 私有化构造方法
     */
    private WeixinAccess() {
    }

    // 当前实例
    private static WeixinAccess wav = null;

    /**
     * 单例调用
     *
     * @return 单例对象
     */
    public static WeixinAccess getInstance() {
        if (null == wav) {
            wav = new WeixinAccess();
        }
        return wav;
    }

}
